Test Series - java script

Test Number 57/92

Q: What is scorched-earth optimizations?
A. They optimize based on certain constraints
B. They strip out everything including best practices
C. Based on certain constraints
D. Striping out additional things
Solution: The Closure Compiler is a tool for making JavaScript download and runs faster. Closure Compiler runs through a number of “scorched-earth” optimizations—it unfurls functions, rewrites variable names, and removes functions that are never called (as far as it can tell).
Q: The Closure Compiler was introduced by ___________
A. Microsoft
B. Apple
C. Google
D. Yahoo
Solution: The Closure Compiler is a tool for making JavaScript download and runs faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. The Closure Compiler was introduced by Google.
Q: What does the Minify return back to the Script tag?
A. File I/O
B. Minify JavaScript
C. HTTP Request
D. Gzip encoded
Solution: Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser. The Minify sends back the gzip encoded back to the Script tag.
Q: What is the return type of the script tag?
A. File I/O
B. Minify JavaScript
C. HTTP Request
D. Gzip encoded
Solution: The script tag sends the HTTP Request to the Minify. Minify reads the JavaScript file in, minifies it and when it responds it sets the accept encoding HTTP header to gzip, deflate.
Q: What does the JS File return?
A. File I/O
B. Minify JavaScript
C. HTTP Request
D. Gzip encoded
Solution: Minification is the process of minimizing code and markup in your web pages and script files. Effectively Minify has built in HTTP static compression. The JS File returns the Minify JavaScript.
Q: What is the outcome of using R along with minification?
A. Sheer file size reduction
B. File size increase
C. More efficient
D. Compatibility
Solution: Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser. Sheer file size reduction is the only one aspect of the overall determination got from the R along with the minification.
Q: Which one of the following is more efficient in terms of the file size reduction?
A. YUI
B. Closure Compiler (advanced)
C. Minify
D. Closure Compiler (simple)
Solution: The Closure Compiler is a tool for making JavaScript download and runs faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. The Closure Compiler (advanced) has a more number percent of file size reduction by product.
Q: Which of the following are JavaScript optimizers?
A. JSMin
B. Packer
C. Minify
D. Both JSMin and Packer
Solution: JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting in faster downloads. JavaScript optimizers such as JSMin and Packer are specially designed for modern web programming techniques and are able to understand and preserve conditional comments, and similar.
Q: Which of the following is the approach used to compress HTML in web servers and modern web browsers?
A. Content encoding
B. Content decoding
C. Compression algorithm – DEFLATE
D. Content minification
Solution: Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser. Content encoding is an approach taken by compatible web servers and modern web browsers to compress HTML and related textual content, often in the gzip format.
Q: Which is the game that requires extremely minified source in the Perl culture?
A. Perl pool
B. Perl golf
C. Both Perl pool and golf
D. Perl bat
Solution: Perl golf is a game where one attempts to write the shortest Perl program to accomplish some goal. In Perl culture, aiming at extremely minified source code is the purpose of the Perl golf game.

You Have Score    /10